﻿using UnityEngine;
using System.Collections;


public class BoxColliderProcessor : MonoBehaviour
{
    public float limitedHeight;
    public BoxCollider[] boxes;

    public void adjust()
    {
        boxes = GetComponents<BoxCollider>();
        foreach (var b in boxes)
        {
            //if (b.center.y > limitedHeight)
            //    b.size.Set(b.size.x, b.size.y/4, b.size.z);
            if (b.center.y > limitedHeight)
                b.enabled = false;
        }
    }

    // Use this for initialization
    void Start()
    {

    }

    // Update is called once per frame
    void Update()
    {

    }
}
